﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace com.diagnosis.tool.bl
{
    public class GetDiseasesFactory
    {
        private static RunningMode sRunningMode = RunningMode.XML;
        
        public static IGetDiseases GetInterface(Object pInitData)
        {
            IGetDiseases inter = null;
            
            switch (sRunningMode)
            {
                case RunningMode.DB:
                    inter = new GetDiseasesFromDB(pInitData);
                    break;
                case RunningMode.XML:
                    inter = new GetDiseasesFromXML(pInitData);
                    break;
                default:
                    break;
            }

            return inter;
        }
    }
}
